package com.tony.spring.mode.observer;

public class ObserverTest {

	public static void main(String[] args) {
		Observer observer = new StudentObserver();
		Observer sObserver = new SongStudentObserver();
		
		// 目标是我
		Subject subject = new Subject();
		subject.addObserver(observer);
		subject.addObserver(sObserver);
		
		subject.action();
	}
}
